import Layout from "@/layout";

//消息中心
const MsgCenter = [
  {
    path: "/msgCenter",
    name: "MsgCenter",
    component: Layout,
    redirect: false,
    meta: { title: "消息中心" },
    children: [
      {
        path: "/msgCenter/waitAudit",
        name: "WaitAudit",
        component: () => import("@/views/MsgCenter/WaitAudit"),
        meta: { title: "待我审批", policy: 'CentralControl.WaitedMessage' },
      },
      {
        path: "/msgCenter/historyAudit",
        name: "HistoryAudit",
        component: () => import("@/views/MsgCenter/HistoryAudit"),
        meta: { title: "历史审批", policy: 'CentralControl.HistoryMessage' },
      },
      {
        path: "/msgCenter/myApply",
        name: "MyApply",
        component: () => import("@/views/MsgCenter/MyApply"),
        meta: { title: "我的申请", policy: 'CentralControl.MyWaitedMessage' }
      },
      {
        path: "/msgCenter/myMessage",
        name: "MyMessage",
        component: () => import("@/views/MsgCenter/MyMessage"),
        meta: { title: "我的消息", policy: 'CentralControl.MyMessage' },
      }
    ]
  }
]

export default MsgCenter
